package com.whfc.iot.fse.crane.processor;

import com.whfc.common.util.JSONUtil;
import com.whfc.iot.fse.crane.entity.TwMsg;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Description: 塔吊消息处理-下线
 * @author: xugcheng
 * @version: 1.0
 * @date: 2019/7/17 9:17
 */
@Component
public class TwUpMsgProcessorDownline implements TwUpMsgProcessor<TwMsg> {

    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private AmqpTemplate amqpTemplate;

    @Override
    public void processMsg(TwMsg reqMsg) {

        logger.info("处理塔吊下线消息:{}", JSONUtil.toString(reqMsg));
    }
}
